<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/css/element.css">
</head>
<body>
<div id="app">
    <#include "/include/daohang.html">
    <el-container>
        <el-header>
            头部
        </el-header>
        <el-container>
            <el-aside width="15%">
                侧边栏
            </el-aside>
            <el-main>
                主栏
            </el-main>
        </el-container>
    </el-container>
</div>
<#include "/include/commonjs.html">
<script>
    var Main = {
        extends: global,
        data() {
            return {
                activeIndex2: '1',
            }
        },
        created(){

        },
        methods: {
            locationfref(href){
                window.open(href);
            },
            handleSelect(key, keyPath) {
                console.log(key, keyPath);
            },
        }
    }
    var Ctor = Vue.extend(Main)
    new Ctor().$mount('#app')

    function keyDown() {
        var keycode = event.keyCode;
        var realkey = String.fromCharCode(event.keyCode);
        if(keycode==13){
            $("#search-btn").click();
        }
        // alert("按键码: " + keycode + " 字符: "+ realkey);

    }
    document.onkeydown = keyDown;
</script>
</body>
</html>